package com.banggood.upms.bean.po;

import com.banggood.upms.bean.vo.validation.AddGroup;
import com.banggood.upms.bean.vo.validation.UpdateGroup;
import lombok.*;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

/**
 * @author XuChuangFeng XuChuangFeng
 */
@Data
public class TreeInfo extends BaseColumn implements Serializable {

    @NotNull(message = "{validation.NotNull.id}", groups = {UpdateGroup.class})
    @Null(message = "{validation.Null.id}", groups = {AddGroup.class})
    private String treeInfoId;

    @NotNull(message = "{validation.TreeInfo.treeType.NotNull}", groups = {AddGroup.class})
    private String treeType;

    @NotNull(message = "{validation.TreeInfo.remark.NotNull}", groups = {UpdateGroup.class})
    private String remark;
}